/* 小说编辑页面专用样式 */

/* 小说信息卡片 */
.novel-info-card {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.novel-info-header {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.novel-cover {
    width: 5rem;
    height: 7rem;
    background-size: cover;
    background-position: center;
    border-radius: 0.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.novel-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.novel-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.novel-meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.novel-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.novel-stat {
    display: flex;
    align-items: center;
}

.novel-stat i {
    margin-right: 0.25rem;
    color: #4b5563;
}

.novel-info-body {
    padding: 1rem;
}

.novel-description {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
}

/* 章节列表 */
.chapter-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.chapter-list-title {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.chapter-list-title i {
    margin-right: 0.5rem;
    color: #4b5563;
}

.chapter-list-actions {
    display: flex;
    gap: 0.5rem;
}

.chapter-item {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #fff;
    transition: all 0.2s ease;
}

.chapter-item:hover {
    background-color: #f9fafb;
}

.chapter-info {
    flex: 1;
}

.chapter-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.chapter-meta {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    gap: 0.75rem;
}

.chapter-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chapter-action-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #4b5563;
    transition: all 0.2s ease;
}

.chapter-action-btn:hover {
    background-color: #e5e7eb;
}

/* 添加章节按钮 */
.add-chapter-btn {
    position: fixed;
    bottom: 5rem;
    right: 1rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.add-chapter-btn:hover {
    background-color: #2563eb;
    transform: scale(1.05);
}

.add-chapter-btn i {
    font-size: 1.25rem;
}

/* 编辑模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 24rem;
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-weight: 600;
}

.modal-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f3f4f6;
}

.modal-body {
    padding: 1rem;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* 表单元素 */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 排序模式 */
.sort-mode .chapter-item {
    cursor: move;
}

.sort-mode .chapter-info {
    opacity: 0.7;
}

.sort-handle {
    width: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    cursor: move;
    margin-right: 0.5rem;
    visibility: hidden;
}

.sort-mode .sort-handle {
    visibility: visible;
} 